﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="lovGridAcoes.ascx.cs" Inherits="SERIX.Controles.lovGridAcoes" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/Controles/Navegador.ascx" TagName="Navegador" TagPrefix="uc1" %>
<style type="text/css">
    .style1
    {
        font-size: x-small;
    }
</style>
<asp:LinkButton ID="linkBtnNome" runat="server" Font-Underline="False" 
    style="font-weight: 700">Indicadores</asp:LinkButton>
<link href="../Estilos/Estilo.css" rel="stylesheet" type="text/css" />
&nbsp;<span class="style1"><asp:Label ID="Label1" runat="server" Text="0"></asp:Label>
</span><asp:UpdatePanel ID="UpdatePanelLov" runat="server">
    <ContentTemplate>
        <table align="center" border="0" cellpadding="2" cellspacing="0" width="350px">
            <tr ID="Draglable" runat="server">
                <td>
                    <table>
                        <tr>
                            <td style="width: 100%; text-align: left">
                                &nbsp;<asp:Label ID="lbTitulo" runat="server" Font-Bold="True" ForeColor="Black" 
                                    Text="Pesquisa de ..."></asp:Label>
                            </td>
                            <td>
                                <asp:UpdateProgress ID="UpdateProgress1" runat="server" 
                                    AssociatedUpdatePanelID="UpdatePanelLov">
                                    <ProgressTemplate>
                                        <img alt="" src="../../Imagens/indicator.white.gif" />
                                    </ProgressTemplate>
                                </asp:UpdateProgress>
                            </td>
                            <td align="left" style="height: 16px; text-align: right;">
                                <asp:ImageButton ID="ImageButton1" runat="server" CausesValidation="False" 
                                    ImageUrl="~/Imagens/botoes/remove.png" OnClick="ImageButton1_Click" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td align="center" class="grid_titulo">
                    <asp:Panel ID="Panel1" runat="server" Width="350px">
                        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                            CssClass="grid" DataKeyNames="idt_ind" onrowdatabound="GridView1_RowDataBound" 
                            Width="350px" AllowPaging="True" DataSourceID="SqlDataSource1" 
                            onpageindexchanged="GridView1_PageIndexChanged">
                            <Columns>
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <asp:CheckBox ID="cbValue" runat="server" AutoPostBack="True" 
                                            oncheckedchanged="cbValue_CheckedChanged" />
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Center" Width="50px" />
                                </asp:TemplateField>
                                <asp:BoundField DataField="dsc_ind" HeaderText="Indicadores">
                                    <ItemStyle HorizontalAlign="Left" />
                                </asp:BoundField>
                            </Columns>
                            <EmptyDataRowStyle CssClass="emptyrow" />
                            <HeaderStyle CssClass="header" />
                            <RowStyle CssClass="row" />
                            <AlternatingRowStyle CssClass="row_alter" />
                        </asp:GridView>
                    </asp:Panel>
                </td>
            </tr>
            <tr>
                <td align="center" style="color: #000000">
                    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
                        ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" 
                        SelectCommand="select * from srx_indicadores order by dsc_ind"></asp:SqlDataSource>
                </td>
            </tr>
            <tr>
                <td align="center" 
                    style="color: #000000; height: 125px; vertical-align: text-top">
                </td>
            </tr>
            <tr style="height: 50px; vertical-align: bottom">
                <td align="center" style="color: #000000">
                </td>
            </tr>
        </table>
    </ContentTemplate>
</asp:UpdatePanel>
<cc1:ModalPopupExtender ID="Panel1_ModalPopupExtender" runat="server" 
    BackgroundCssClass="modalBackground" DynamicServicePath="" Enabled="True" 
    PopupControlID="UpdatePanelLov" TargetControlID="linkBtnNome">
</cc1:ModalPopupExtender>
